package com.practice;

import java.util.Timer;
import java.util.TimerTask;

public class ResourcePractice {
	public static void run() {
		Timer timer = new Timer();
		timer.schedule(new TimerTask() {
			
			@Override
			public void run() {
				java.io.File file = new java.io.File("test.txt");
				if (file.exists()) {
					System.out.println("true");
				} else {
					System.out.println("false");
				}
			}
		}, 0, 5000);
	}
}
